< previous page page_328 next page >

Page 328
ready to use, you can start creating the report. Start by adding a Data Report Designer object to the project by right-clicking in the Project Explorer. Click Add and then Data Report, naming it drCustOrders. Now, set the DataSource property of the Data Report you added to deNorthWind, which is the name of the Data Environment you previously defined. Finally, set the Data Member to the Parent command, cmdCustomers.
Caution
The Data Environment Designer object must be opened to set the
DataSource property to deNorthWind. In fact, it must be opened in order to use it during the Data Report design process. The best way to work with this is to tile the windows as shown in Figure 12.11.

The next step is to insert a Group section into the report. To insert the Group, right-click the Data Report Designer and click Insert Group Header/Footer (see Figure 12.11). Each Group section that you add to a report has a one-to-one relationship with a Command object in the Data Environment; in this case, the new Group will relate to the Customers command object.
12181-0328a.gif
Figure 12.11.
Inserting a Group header or footer into the Data Report.
This first grouping will display the customer information, which should be displayed only once for each customer. You should also change the names of the Header and Footer sections to reflect the data that will be placed into them. To move data fields into

 
< previous page page_328 next page >

If you like this book, buy it!